package ve.gob.cne.dao;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.Session;

public interface Dao {

	public void persist(Object entity);

	public void persist(Object[] entities);

	public <T> List<T> find(Class<T> entityClass);

	public <T> T load(Class<T> entityClass, Serializable id);

	public <T> List<T> find(String hql);
	
	public void remove(Object entity);
	
	public <T> void deleteAll(Collection<T> entities);
	
	public <T> void deleteAll(Class<T> entityClass);
	
	public Session getObjectSession();

}
